<?php
namespace Amis\form;
class CheckBox extends FormItem
{
    public string $type = 'checkbox';

    public function options($options)
    {
        $this->options = $options;
        return $this;
    }

    public function trueValue($trueValue)
    {
        $this->trueValue = $trueValue;
        return $this;
    }

    public function falseValue($falseValue)
    {
        $this->falseValue = $falseValue;
        return $this;
    }

    public function optionType($optionType = 'default')
    {
        $this->optionType = $optionType == 'default' ?: 'button';
        return $this;
    }
}